package itbour.onetouchshow.base;

import android.os.Bundle;
import android.view.WindowManager;

import itbour.onetouchshow.base.mvp.BasePresenterImpl;
import itbour.onetouchshow.base.mvp.BaseView;
import itbour.onetouchshow.base.mvp.MVPBaseActivity;

/**
 * 创建人：$ gyymz1993
 * 创建时间：2017/10/16 10:09
 */

public abstract class BaseDialogMvpActivity<V extends BaseView, T extends BasePresenterImpl<V>> extends
        MVPBaseActivity<V, T> implements BaseView {

    @Override
    protected void afterCreate(Bundle savedInstanceState) {
        //全屏Activity操作
        getWindow().setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT);
        // View viewById = findViewById(android.R.id.content);
        //ViewGroup.LayoutParams layoutParams = viewById.getLayoutParams();

    }


    @Override
    public void finish() {
        super.finish();
        //注释掉activity本身的过渡动画
        // overridePendingTransition(R.anim.popshow, 0);  //解决退出动画无效
        // overridePendingTransition(0, 0);
    }

}
